import * as React from "react"
export class Link extends React.Component<{ active, children, onClick }, null>
{
    render()
    {
        if (this.props.active) {
            return <span>{this.props.children}</span>
        }

        return (
            <a href="#"
                onClick={e =>
                {
                    e.preventDefault()
                    this.props.onClick()
                }}
            >
                {this.props.children}
            </a>
        )
    }
}